//
//  PolyDelegate.m
//  HelloPoly
//
//  Created by Lefty Fabulous on 8/30/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import "PolyDelegate.h"


@implementation PolyDelegate

@synthesize shape;

- (void)initializeShape:(int)numberOfSides {
	shape = [[PolygonShape alloc] init];
	[shape setMinimumNumberOfSides:3];
	[shape setMaximumNumberOfSides:12];
	[shape setNumberOfSides:numberOfSides];
	NSLog(@"Shape: %@", [shape description]);
}

- (void) dealloc {
	[shape release];
	[super dealloc];
}

- (void)increase {
	[shape setNumberOfSides:[shape numberOfSides] + 1];
}

- (void)decrease {
	[shape setNumberOfSides:[shape numberOfSides] -1];
}

@end
